package com.ls.blog.api;


import com.ls.blog.entity.SysUser;
import com.ls.blog.exception.TokenNotFoundException;

import java.util.Map;

/**
 * 用户验证
 */
public interface LoginService {


    /**
     * 用户验证
     * @param user
     * @return
     */
    Map<String,Object> login(SysUser user) throws Exception;




    void logout(String token);
}
